<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let dyq = {
        uname: 'dale',
        age :18,
        hobby:'game'
    }
    for (let k in dyq) {
        //k 为字符串型 所以用第二种查询方式
        console.log(dyq[k]);
    }
</script>
</body>
</html>